﻿@model HelloMinasan.Web.Song.ViewModels.SongViewModels
 @Html.HiddenFor(x => x.SongId)
<div class="contentSectionInside">
    <table width="100%" cellspacing="0" cellpadding="0">
        <tr>
            <td valign="top">
                <div class="containerAllProperties">
                    <div class="leftDivNoSize">@Html.LabelFor(x => x.SongName)</div>
                    @Html.TextBoxFor(x => x.SongName)
                </div>
                <div class="containerAllProperties">
                    <div class="leftDivNoSize">Ca sĩ</div>
                    @Html.TextBoxFor(x => x.Singer)
                </div>
                <div class="containerAllProperties">
                    <div class="leftDivNoSize">Nhạc sĩ</div>
                    @Html.TextBoxFor(x => x.Composer)
                </div>
                <div class="containerAllProperties">
                    <div class="leftDivNoSize">Embed Code</div>
                    @Html.TextBoxFor(x => x.SongURL)
                </div>
                <div class="containerAllProperties">
                    @Html.TextBoxFor(x => x.URL, new { style="display:none" })
                </div>
                <div class="containerAllProperties">
                    @Html.TextBoxFor(x => x.Images, new { style="display:none" })
                </div>
                <div class="containerAllProperties">
                    <div class="leftDivNoSize">@Html.LabelFor(x => x.ImageFile)</div>
                    @Html.TextBoxFor(x => x.ImageFile, new { type = "file" })
                </div>
                <div class="containerAllProperties">
                    <div class="leftDivNoSize">@Html.LabelFor(x => x.SongFile)</div>
                    @Html.TextBoxFor(x => x.SongFile, new { type = "file" })
                </div>
                @Html.HiddenFor(x=>x.IsEdit)
                @if (!Model.IsEdit)
                {
                    <div class="containerAllProperties">
                        <div class="leftDivNoSize">@Html.LabelFor(x => x.SelectedLanguage)</div>
                        @Html.DropDownListFor(x => x.SelectedLanguage, Model.LanguageList)
                    </div>
                    <div class="containerAllProperties">
                        <div class="leftDivNoSize">@Html.LabelFor(x => x.OrginalLyric)</div>
                        @Html.TextAreaFor(x => x.OrginalLyric, new { @class = "lyricTextArea" })
                    </div>
                    <div class="containerAllProperties">
                        <div class="leftDivNoSize">Allow editing lyric</div>
                        @Html.CheckBoxFor(x => x.CanUpdateLyric, new { style="width:25px;" })
                    </div>
                }
                <div class="containerAllProperties">
                    <div class="leftDivNoSize">@Html.LabelFor(x => x.Grammar)</div>
                    @Html.TextAreaFor(x => x.Grammar, new { @class = "lyricTextArea" })
                </div>
                <div class="containerAllProperties">
                    <div class="leftDivNoSize">Allow editing grammar</div>
                        @Html.CheckBoxFor(x => x.CanUpdateGrammar, new { style="width:25px;" })
                </div>
                </div>
                <input type="submit" value="Submit" />
            </td>
            <td valign="top">
                @ViewBag.Error
                @Html.ValidationSummary("", new { @class = "validateMessage" })

            </td>
        </tr>
    </table>
</div>
